package com.combetter.changxing.ui.dialog;

import android.databinding.DataBindingUtil;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;

import com.combetter.changxing.R;
import com.combetter.changxing.databinding.DialogMerchantBinding;

/**
 * 我的- 联系商家
 * <p>
 * Created by 深圳唐龙飞讯科技有限公司 on 2018/6/12.
 */

public class MerchantDialog extends DialogFragment {
    private DialogMerchantBinding merchantBinding;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        getDialog().requestWindowFeature(Window.FEATURE_NO_TITLE);
        getDialog().getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
        merchantBinding = DataBindingUtil.inflate(inflater, R.layout.dialog_merchant, container, false);
        initVies();
        setListener();
        return merchantBinding.getRoot();
    }

    @Override
    public void onResume() {
        super.onResume();
//        int width =  ResUtils.getDimens(getContext(), R.dimen.DIMEN_500PX);
//        int height = ResUtils.getDimens(getContext(), R.dimen.DIMEN_300PX);
//        getDialog().getWindow().setLayout(width, height);
    }


    /**
     * 初始化控件
     */
    private void initVies() {

    }

    /**
     * 点击事件
     */
    private void setListener() {

    }

}
